home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 31
/
Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso
/
Aminet
/
dev
/
c
/
GED_Scripts.lha
/
GED_Scripts
/
InsertClassname.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-12-22
|
1KB
|
43 lines
/* $VER: InsertClassname.rexx 1.1 (22.12.98) */
/* Freeware, ©1998 Christian Hattemer */
/* email: Chris@mail.riednet.wh.tu-darmstadt.de */
/* */
/* Inserts the Name of the Class */
options results /* enable return codes */
if (left(address(), 6) ~= "GOLDED") then /* not started by GoldEd ? */
address 'GOLDED.1'
'LOCK CURRENT RELEASE=4' /* lock GUI, gain access */
if (RC ~= 0) then
exit
options failat 6 /* ignore warnings */
signal on syntax /* ensure clean exit */
/* ---------------------- INSERT YOUR CODE HERE ---------------------- */
'QUERY FILE VAR=Filename'
Classname = LEFT(Filename, LASTPOS('.c', Filename) -1)
'SET NAME=INSERT VALUE=TRUE'
'TEXT T="'Classname'"'
/* ------------------------- END OF YOUR CODE ------------------------ */
'UNLOCK' /* unlock GUI */
exit
SYNTAX:
SAY "Error in line" SIGL ":" ERRORTEXT(RC)
'UNLOCK'